<?php 
use yii\helpers\Html;
use yii\widgets\ActiveForm;
 ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
  <div class="body-content">
<?php $form = ActiveForm::begin(['action'=>['right/add'],'options'=>['class' => 'form-x']]);  ?>
      <div class="form-group">
        <div class="label">
          <label>权限名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="name" data-validate="required:权限名不能为空" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>所属分类：</label>
        </div>
        <div class="field">
          <li>
            <select name="right_pid" class="input" style="width:200px; line-height:17px;">
              <option value="0">顶级分类</option>
              <?php foreach ($right as $key => $value): ?>
                <option value="<?=$value->id ?>"><?=$value->name ?></option>
              <?php endforeach ?>
            </select>
          </li>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>是否展示菜单栏：</label>
        </div>
        <div class="field">
          <li>
          <select name="right_status" class="input" style="width:60px; line-height:17px;display:inline-block">
            <option value="1">是</option>
            <option value="0">否</option>
          </select>
          </li>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>控制器/方法：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="right" data-validate="required:控制器/方法不能为空" />
          <div class="tips"></div>
        </div>
      </div>     
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
<?php ActiveForm::end(); ?>  
  </div>
</div>

</body></html>